﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WAVEZ
{
    class Camera3D
    {

        public Matrix projecao;

        public Vector3 position, lookAt, up;

        public Camera3D(GraphicsDevice graphicsDevice)
        {
            projecao = Matrix.CreatePerspectiveFieldOfView(
                MathHelper.PiOver4 / 2,
                graphicsDevice.Viewport.AspectRatio,
                1f,
                300f);

            position = new Vector3(0, 0, 10);
            lookAt = new Vector3(0, 0, 0);
            up = Vector3.Up;

        }

        public Matrix View
        {
            get
            {
                Matrix view = Matrix.CreateLookAt(position, lookAt, up);



                return view;
            }
        }
    }
}
